package com.enums;

//角色表
public enum SysRoleEnum {

	planService("排货计划-客服", "service"), planTm("排货计划-物流", "tm"), planProd("排货计划-生产", "prod"),
	planStore("排货计划-储运", "store"), planQuery("排货计划-查询", "planQuery"), planMail("排货计划-邮件", "planMail"),
	serviceBtn("客服", "serviceBtn"), tmBtn("物流", "tmBtn"), prodBtn("生产", "prodBtn"), storeBtn("储运", "storeBtn");

	private String name = "";

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private String value = "";

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	SysRoleEnum(String name, String value) {
		this.name = name;
		this.value = value;
	}

	public static String getEnumValue(String name) {
		String valueString = "";
		for (SysRoleEnum e : SysRoleEnum.values()) {
			if (e.getName().equals(name)) {
				valueString = e.getValue();
			}
		}
		return valueString;
	}

}
